{% extends 'layout.html' %}

{% block content %}
    <div class="container">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">新建部门 </h3>
          </div>
          <div class="panel-body">
            <form method="POST">
                <!-- post提交默认报错，这里必须加上csrf_token -->
                {% csrf_token %}
                <div class="form-group">
                    <label>  新建名称</label>
                    <input type="text" class="form-control" placeholder="名称" name="title" />
                </div>
              <button type="submit" class="btn btn-primary">提交</button>
            </form>
          </div>
            </div>
        </div>

{% endblock %}